/**
 * Created by husf on 2017/3/23.
 */

const infoDetail = resolve => require(['./pages/info/detail.vue'], resolve);

const routes = [
    { path: '/', component: resolve => require(['./pages/info/index.vue'], resolve) },
    { path: '/info', component: resolve => require(['./pages/info/index.vue'], resolve) },
    { path: '/info/:id', component: infoDetail },
    { path: '/login', component: resolve => require(['./pages/login.vue'], resolve) },
    { path: '/comment', component: resolve => require(['./pages/info/comment.vue'], resolve) },
    { path: '/investigate', component: resolve => require(['./pages/investigate/index.vue'], resolve) },
    { path: '/shengya', component: resolve => require(['./pages/classroom/index.vue'], resolve) },
    { path: '/learning', component: resolve => require(['./pages/classroom/learning.vue'], resolve) },
    { path: '/learning-detail', component: resolve => require(['./pages/classroom/learning-detail.vue'], resolve) },
    { path: '/map', component: resolve => require(['./pages/classroom/map.vue'], resolve) },
    { path: '/mapop', component: resolve => require(['./pages/classroom/mapop.vue'], resolve) },
    { path: '/achievement', component: resolve => require(['./pages/classroom/achievement.vue'], resolve) },
    { path: '/achievement-detail', component: resolve => require(['./pages/community/achievement-detail.vue'], resolve) },
    { path: '/explore-learning', component: resolve => require(['./pages/classroom/explore-learning.vue'], resolve) },
    { path: '/interaction', component: resolve => require(['./pages/classroom/interaction.vue'], resolve) },
    { path: '/explore-map', component: resolve => require(['./pages/classroom/explore-map.vue'], resolve) },
    { path: '/dati', component: resolve => require(['./pages/investigate/dati.vue'], resolve) },
    { path: '/test', component: resolve => require(['./pages/investigate/test.vue'], resolve) },
    { path: '/test/next/:id', component: resolve => require(['./pages/investigate/test.vue'], resolve) },
    { path: '/test/last/:id', component: resolve => require(['./pages/investigate/test.vue'], resolve) },
    { path: '/test/over', component: resolve => require(['./pages/investigate/testOver.vue'], resolve) },
    { path: '/community', component: resolve => require(['./pages/community/index.vue'], resolve) }

];
export default routes